package com.gking.centerSystem.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;


/**
 * 用户
 */
@Data
@TableName("user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    //用户id
    @TableId
    private String id;

    //账号
    @TableField(value = "account")
    private String account;

    //密码
    @TableField(value = "password")
    private String password;

    //昵称
    @TableField(value = "nickname")
    private String nickname;

    //个性签名
    @TableField(value = "signature")
    private String signature;

    //头像
    @TableField(value = "avatar")
    private String avatar;

    //手机号码
    @TableField(value = "phoneNumber")
    private String phoneNumber;

    //邮箱
    @TableField(value = "email")
    private String email;

    //是否启用
    @TableField(value = "enable")
    private Integer enable;

    //创建时间
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //手机号模糊查询加密
    @TableField(value = "phoneFuzzyQuery")
    private String phoneFuzzyQuery;

    //邮箱模糊查询加密
    @TableField(value = "emailFuzzyQuery")
    private String emailFuzzyQuery;

    //是否删除了
    @TableField(value = "isDelete")
    private Integer isDelete;
}
